@echo off
echo Starting Content Harvester...

:: 启动前端服务
cd frontend
@REM start cmd /k "npm install"
start "" /B cmd /c "npm run dev"

:: 等待前端启动
timeout /t 5

cd ../backend
@REM pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
python -m uvicorn src.main:app --reload --host 0.0.0.0 --port 8000 


echo Content Harvester is starting...
echo Backend: http://localhost:8000
echo Frontend: http://localhost:5173

:: 打开浏览器
@REM timeout /t 3
@REM start http://localhost:5173